public interface JIDLMouseListener
JIDLCanvas
The listener interface for receiving mouse events from IDL (press, release, enter, and exit) on a JIDLCanvas. A mouse event is generated when the mouse is pressed, released, the mouse cursor enters or leaves the JIDLCanvas component.
Note: Mouse moves and drags are tracked using JIDLMouseMotionListener. The class that is interested in processing an IDL mouse event implements this interface (and all the methods it contains). The listener object created from that class is then registered with the JIDLCanvas using the addIDLMouseListener method. The listener is unregistered with the removeIDLMouseListener.
The JIDLCanvas automatically handles mouse events whether a program registers an additional JIDLMouseListener or not. The JIDLCanvas is itself a JIDLMouseListener and provides default behavior for the 4 events, as denoted in the specific methods below.
Note: Clients should not register to listen to JIDLCanvas MouseEvents using a MouseListener, preferring the JIDLMouseListener instead.
JIDLCanvas, JIDLMouseMotionListener, java.awt.event.MouseEvent,java.awt.event.MouseListener
IDLmouseEntered(JIDLObjectI obj, java.awt.event.MouseEvent event)
The mouse has entered the JIDLCanvas.
IDLmouseExited(JIDLObjectI obj, java.awt.event.MouseEvent event)
The mouse has exiting the JIDLCanvas.
IDLmousePressed(JIDLObjectI obj, java.awt.event.MouseEvent event)
A mouse button was pressed inside the JIDLCanvas.
IDLmouseReleased(JIDLObjectI obj, java.awt.event.MouseEvent event)
A mouse button was released inside the JIDLCanvas.
public void IDLmouseEntered(com.idl.javaidl.JIDLObjectI obj, java.awt.event.MouseEvent event)
The mouse has entered the JIDLCanvas.
The default behavior of JIDLCanvas’s default implementation is to call the IDL program’s OnEnter method.
obj - The JIDLCanvas in which the event occurred.
event - The mouse event
public void IDLmouseExited(com.idl.javaidl.JIDLObjectI obj, java.awt.event.MouseEvent event)
The mouse has exiting the JIDLCanvas.
The default behavior of JIDLCanvas’s default implementation is to call the IDL program’s OnExit method.
obj - The JIDLCanvas in which the event occurred.
event - The mouse event
public void IDLmousePressed(com.idl.javaidl.JIDLObjectI obj, java.awt.event.MouseEvent event)
A mouse button was pressed inside the JIDLCanvas.
The default behavior of JIDLCanvas’s default implementation is to call the IDL program’s OnMouseDown method.
obj - The JIDLCanvas in which the event occurred.
event - The mouse event
public void IDLmouseReleased(com.idl.javaidl.JIDLObjectI obj, java.awt.event.MouseEvent event)
A mouse button was released inside the JIDLCanvas.
The default behavior of JIDLCanvas’s default implementation is to call the IDL program’s OnMouseUp method.
obj - The JIDLCanvas in which the event occurred.
event - The mouse event